import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:leader_help/utils/component/component.dart';
import 'widgets/header.dart';

import 'index.dart';

class NewsDetailPage extends GetView<NewsDetailController> {
  const NewsDetailPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    controller.state.context = context;
    return GetBuilder<NewsDetailController>(
      builder: (_) {
        return Scaffold(
          appBar: detailAppBar(context, title: '资讯详情'),
          backgroundColor: Colors.white,
          body: SafeArea(
            child: NewsDetailHeader(),
          ),
        );
      },
    );
  }
}

// class AnimationWidget extends StatefulWidget {
//   AnimationWidget({Key? key}) : super(key: key);

//   @override
//   _AnimationWidgetState createState() => _AnimationWidgetState();
// }

// class _AnimationWidgetState extends State<AnimationWidget> {
//   @override
//   Widget build(BuildContext context) {
//     return Container();
//   }
// }
